//
//  TCollectionViewControllelr.h
//  SanYiTeaching
//
//  Created by 李文强 on 2019/4/8.
//  Copyright © 2019 李文强. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TCollectionViewCell.h"
#import "TeachTopSelectedView.h"
#import "TWorkSelectedTopView.h"
#import "CJYearMonthSelectedView.h"
#import "CJClassSelectedView.h"
#import "TestTopNavView.h"
@protocol TCVCDelegate <NSObject>

typedef NS_ENUM(NSInteger, ControllViewType)
{
    TypeCourse = 0,
    TypeWork = 1,
    TypeTest = 2,
    TypeClass = 3,
};

@optional
- (void)collectionViewCellClick:(NSIndexPath *)index;

@end

NS_ASSUME_NONNULL_BEGIN

@interface TCollectionViewControllelr : UICollectionViewController
@property (nonatomic, assign) id<TCVCDelegate>mDelegate;
@property (nonatomic, strong) TeachTopSelectedView *topSelectView;
@property (nonatomic, strong) TWorkSelectedTopView *topWorkView;
@property (nonatomic, strong) TestTopNavView *testTopView;
- (void)getDataForView:(NSString *)name;
- (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout andControllViewType:(ControllViewType)type;
@end

NS_ASSUME_NONNULL_END
